package com.woniu.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 登录表
 * </p>
 *
 * @author ly
 * @since 2024年12月05日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @TableField("user_name")
    private String userName;

    /**
     * 学号，教职工号码
     */
    @TableField("user_card")
    private String userCard;

    @TableField("user_phone")
    private String userPhone;

    @TableField("user_password")
    private String userPassword;

    /**
     * 0为正常状态1为禁用状态2为删除状态
     */
    @TableField("user_state")
    private Integer userState;

    /**
     * 创建用户时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新用户时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;


}
